-- GENERATED SPELL FOR [Naphthal'ar] --


function spell0_18438(pUnit, Event) --@Dazzling Dust,n/a--
pUnit:FullCastSpellOnTarget(32913,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18438', 5292, 1)
end

function spell1_18438(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(32914,pUnit)
pUnit:RegisterEvent('Sorts_18438', 1000, 1)
end

function Sorts_18438(pUnit, Event)
local choix_sorts_18438 = math.random(0, 1)
if choix_sorts_18438 == 0 then
pUnit:RegisterEvent('spell0_18438', 1, 1)
end
if choix_sorts_18438 == 1 then
pUnit:RegisterEvent('spell1_18438', 1, 1)
end
end

function mob18438_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18438', math.random(1500, 3000), 1)
end

function mob18438_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18438_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18438_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18438, 1, 'mob18438_Action')
RegisterUnitEvent(18438, 2, 'mob18438_Leave')
RegisterUnitEvent(18438, 3, 'mob18438_Kill')
RegisterUnitEvent(18438, 4, 'mob18438_Die')
